Cover TOC Chap Prev Chap Prev Fig Next Fig Next Chap

Chapter 25: Controlling Detail

../ch25/25fig11.gif
Figure 25.11

A dungeon door.

25fig11.wrl
Click on the image to view the VRML scene.

#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright (c) 1997
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
Shape {
    appearance Appearance {
        material Material { diffuseColor 1.0 1.0 1.0 }
        texture ImageTexture { url "panel.jpg" }
    }
    geometry IndexedFaceSet {
        coord Coordinate {
            point [
                -0.75 0.0 0.0,  0.75 0.0 0.0,
                 0.75 2.5 0.0, -0.75 2.5 0.0,
            ]
        }
        texCoord TextureCoordinate {
            point [
                0.0 0.0,  1.0 0.0, 1.0 2.0,  0.0 2.0,
            ]
        }
        coordIndex [ 0, 1, 2, 3 ]
        solid FALSE
    }
}